# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py3-ruffus
pkgver=2.8.4
pkgrel=4
pkgdesc="Python library for computational pipelines"
url="http://www.ruffus.org.uk/"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/r/ruffus/ruffus-$pkgver.tar.gz"
builddir="$srcdir/ruffus-$pkgver"

replaces="py-ruffus" # Backwards compatibility
provides="py-ruffus=$pkgver-r$pkgrel" # Backwards compatibility

prepare() {
	default_prepare
	# remove interpreter line from libraries
	sed -i '/#!\//d' ruffus/*/*.py
}

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="5f38ad4ca5aca007e63b59be6117af85618bc27e8d98cc3b32add82ac48766c37b3fb2633a28c98941397ab3154553ba57509b321d2c80d01c753ac189f092e7  ruffus-2.8.4.tar.gz"
